home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / picture / backdrop.c < prev    next >
Text File  |  1993-09-23  |  794b  |  28 lines

  1. //    Copyright 1993 Ralph Gonzalez
  2.  
  3. /*
  4. *    FILE:        backdrop.c
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    November 7, 1990
  7. *
  8. *    methods for backdrop projector class, which blacks out screen.
  9. */
  10.  
  11. # include    "backdrop.h"
  12.  
  13. /******************************************************************
  14. *    Set projection frame to fill screen, then call inherited.
  15. *    Can't do this in constructor since we don't know screen_ptr yet
  16. *    at that point.
  17. ******************************************************************/
  18. void    Backdrop_Projector::set_screen(Generic_Screen* screen_ptr_val)
  19. {
  20.     set_projection_frame(screen_ptr_val->normalized_frame->x,
  21.                         screen_ptr_val->normalized_frame->y,
  22.                         screen_ptr_val->normalized_frame->width,
  23.                         screen_ptr_val->normalized_frame->height);
  24.  
  25.     Projector::set_screen(screen_ptr_val);
  26. }
  27.  
  28.